cmake_minimum_required(VERSION 2.6.2)

project(cuda_test)

include(FindCUDA)

set (CUDA_SOURCE_FILES
	./src/cuda_hello.cu
)

set (HEADER_FILES

)

set (SOURCE_FILES
	./src/cuda_hello_host.cpp	
)

# Set target properties
set(CMAKE_DEBUG_POSTFIX "_d")
set(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE OFF)


# Set include search path
include_directories(${DEPENDENCIES_OGRE_INCLUDE_DIR})
include_directories(${CUDA_TEST_INCLUDE_DIR})
include_directories(${CUDA_CUT_INCLUDE_DIR}) 


# Build target
CUDA_COMPILE(CUDA_FILES ${CUDA_SOURCE_FILES})
ADD_EXECUTABLE(cuda_test ${CUDA_FILES} ${SOURCE_FILES} ${CUDA_SOURCE_FILES})

TARGET_LINK_LIBRARIES(cuda_test
 ${CUDA_LIBRARIES}
)
 
CUDA_BUILD_CLEAN_TARGET()

# Output directory
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${RT_BUILD_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${RT_BUILD_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${RT_BUILD_DIR}/bin")